<template >
  <div class="content">
    <p class="fonts">***管理系统</p>
    <el-form :model="DateLog" label-width="auto" style="max-width: 600px">
    <el-form-item label="账号">
      <el-input v-model="DateLog.name" />
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="DateLog.password" />
    </el-form-item>
    </el-form>
    <el-button class="botton" @click="onsubmit()" type="primary">登录</el-button>
  </div>
</template>

<script setup>
import {useRouter} from 'vue-router'
import {ref,onMounted} from 'vue'
const router = useRouter()
const DateLog = ref({
  name:'',
  password:''
  
})
const onsubmit = () => {
  router.replace({ path: '/home' });
  console.log('submit!')
}
</script>

<style scope lang="less">
.content{
  border-radius: 6px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 509px;
  height: 412px;
  background-color: #FFFFFF;
  transform: translate(584px,-27px);
  .botton{
    text-align: center;
    width: 500px;
    height: 50px;
 
  }
  .fonts{
    text-align: center;
    font-size: 30px;
    font-weight: 100px;
    color: #1E9FFF;
  }
  
}

 *{
    padding: 0px;
    margin: 0px;
  }
  body{
    width: 100%;
    height: 1080px;
    background-image: url('@/assets/images/bg.png');
  background-repeat: no-repeat;
  }
  .botton{
    display: flex;

  }
 
</style>